<%--
  Created by IntelliJ IDEA.
  User: whb
  Date: 2024/5/8
  Time: 16:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎登陆</title>
</head>
<%

    //清理cookie用户电脑查找cookie
    Cookie[] cookies = request.getCookies();
    if (cookies != null){
        for (Cookie cookie : cookies){
            if (cookie.getName().equals("")){
                request.getRequestDispatcher("student").forward(request,response);
            }
        }
    }
%>
<body>
<form action="/lodinweb2_0_war_exploded/crud?type=login" method="post" style="margin: auto">
    <input type="text" name="name" placeholder="请`输入用户名"><br>
    <input type="password" name="pwd" placeholder="请输入密码"><br>
    <input type="text" name="yz" placeholder="请输入验证码,注意有大小写之分">
    <img src="/lodinweb2_0_war_exploded/code" onclick="this.src=this.src+'?'+Math.random()" width="50" height="30">
    <button>登陆</button>
    <a href="Login.html">Login</a>
    <a href="find.html">找回密码</a>
    <a href="weather.html">天气</a>
    <a href="pageselect.html">page</a>
</form>
</body>
</html>
